<form id="formTestSub" action="questionnaireSurvey1Save">
    <div class="row">
        <div class="col-lg-12">
        <div class="hpanel hyellow">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                问卷信息
            </div>

            <div class="panel-body form-horizontal">

                <style>
                #formTestSub label {
                    text-align: left !important;
                }
                </style>
                <input type="hidden" id="id" name="id" value="${this?.opportunity?.id}">
                <input type="hidden" id="questionnaireInstanceId" name="questionnaireInstanceId"
                       value="${this?.questionnaireInstance?.id}">

                <g:each in="${com.next.QuestionInstance.findAllByQuestionnaireInstance(this?.questionnaireInstance, [order: 'asc', sort: 'displayOrder'])}"
                        var="qi">
                    <div class="form-group" style="line-height: 34px;">
                        <label class="col-sm-10 control-label">
                            ${qi?.displayOrder}.${qi?.name} <span class="required" style="color: red">*</span>
                        </label>



                    <g:if test="${qi?.questionType == 'radio'}">
                        <g:each in="${com.next.OptionInstance.findAllByQuestionInstance(qi, [order:'asc', sort: 'displayOrder'])}" var="oi">

                        <div class="">
                            <g:radioGroup name="${qi?.name}" id="${oi?.name}" labels="${oi*.name}" values="${oi*.name}">
                                <p style="float: left">${it.radio} ${it.label} </p>
                            </g:radioGroup>
                        </div>
                        %{--<p style="float: left">${oi.radio} ${oi.label} </p>--}%
                            %{--<div class="radio radio-info radio-inline">--}%
                                %{--<input type="radio" id="${oi?.name}" name="${qi?.name}">--}%
                                %{--<label for="${oi?.name}" style="line-height: 16px;">${it.label}</label>--}%
                            %{--</div>--}%

                        </g:each>

                    </g:if>

                        <g:if test="${qi?.questionType == 'input'}">
                            <div class="input-group">
                                <input class="form-control" type="text" name="${qi?.name}" id="${qi?.name}"
                                       value="${qi?.value}" placeholder="请输入"/>
                            </div>
                        </g:if>

                        <g:if test="${qi?.questionType == 'checkbox'}">
                            <g:each in="${com.next.OptionInstance.findAllByQuestionInstance(qi, [order: 'asc', sort: 'displayOrder'])}"
                                    var="oi">
                                ${oi?.name}
                            %{--<div class="form-group">--}%
                                %{--<div class="icheckbox_square-green checked">--}%
                                    %{--<input type="checkbox" id="${oi?.name}" name="${qi?.name}">--}%
                                    %{--<label for="${oi?.name}" style="line-height: 16px;">${it.label}</label>--}%
                                    %{----}%%{----}%%{--<label><input name="${oi?.name}" type="checkbox" value="${true}"/>${oi?.name} </label>--}%%{----}%%{----}%
                                %{--</div>--}%
                            %{--</div>--}%
                                <div class="checkbox checkbox-info">
                                    <input type="checkbox" id="${oi?.name}" name="${qi?.name}">
                                    <label for="${oi?.name}">
                                        ${it.label}
                                    </label>
                                </div>
                            </g:each>
                        </g:if>
                    </div>

                </g:each>

                <div style="clear: both;"></div>
                %{--<div class="bigBtn col-sm-12 col-sm-offset-2">
                    <button type="button" class="btn btn-primary" id="submit">提交</button>
                </div>--}%
</div>
            </div>

        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
        <div class="hpanel hyellow">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                面签信息
            </div>
                <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label">面签意见</label>
                            <input type="text" class="form-control" name="interviewMemo" value="${this?.opportunity?.interviewMemo}"
                                   style="width: 200px;display: inline-block;margin-left: 10px;">
                        </div>

                        <div class="form-group">
                            <label class="control-label">面签结果</label>

                            <div style="display: inline-block;margin-left: 10px;">
                                <div class="radio radio-info radio-inline">
                                    <input type="radio" id="checkBoxa" name="interviewResult" value="通过">
                                    <label for="checkBoxa">
                                        通过
                                    </label>
                                </div>

                                <div class="radio radio-info radio-inline">
                                    <input type="radio" id="checkBoxa" name="interviewResult" value="不通过">
                                    <label for="checkBoxa">
                                        不通过
                                    </label>
                                </div>
                            </div>
                        </div>
                </div>
        </div>
                %{--<div class="panel-footer">
                    Table - 6 rows
                </div>--}%
            </div>
        </div>
    </div>
</form>